package b4.widget.humanBeing
{
	import b4.net.*;
	import b4.widget.basic.*;
	import b4.widget.tab.TabController;

	public class HumanBeingDialog extends TabController
	{
		static private var instance:HumanBeingDialog;
		
		public function HumanBeingDialog()
		{
			var HumanBeingBgr:Class = ResourceManager.getInstance().getClassByName("HumanBeingBgr");
			var CloseButton:Class = ResourceManager.getInstance().getClassByName("CloseButton0");
			var TabTitle0:Class = ResourceManager.getInstance().getClassByName("TabTitle0");
			var TabTitle1:Class = ResourceManager.getInstance().getClassByName("TabTitle1");
			super(HumanBeingBgr, CloseButton);
			this.anchor = BasicWidget.ANCHOR_MIDDLE_MIDDLE;
			//属性页
			var humanProperyTab:HumanPropertyTab = new HumanPropertyTab();
			addTab(TabTitle1, humanProperyTab.tabName, humanProperyTab, TabTitle0);
			this.setTabTitlePos(25, 40);
			this.setTabPagePos(25, 40);
		}
		
		static public function getInstance():HumanBeingDialog
		{
			if (!instance)
				instance = new HumanBeingDialog();
			return instance;
		}
		
	}
}